package com.mrjy.queries.dao;

import com.mrjy.common.entity.QuestionTopicInfo;
import com.mrjy.custom.dto.CustomModuleDto;

import java.util.List;

public interface IQuestionTopicInfoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(QuestionTopicInfo record);

    int insertSelective(QuestionTopicInfo record);

    QuestionTopicInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QuestionTopicInfo record);

    int updateByPrimaryKey(QuestionTopicInfo record);

	List<QuestionTopicInfo> queryListTopicInfo();

	int countQuestionsByTopicId(Integer id);

	int countQuestionAnwserByTopicId(Integer id);

    List<QuestionTopicInfo> queryListCustomTopicInfo(CustomModuleDto questionTopicInfo);

    int countCustomTopicInfo(CustomModuleDto customModuleDto);
}